package com.xinzhi.service.impl;

import com.xinzhi.dao.Curriculum_vitaeMapper;
import com.xinzhi.model.Curriculum_vitae;
import com.xinzhi.service.ICurriculum_vitaeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Curriculum_vitaeImpl implements ICurriculum_vitaeService {

    @Autowired
    private Curriculum_vitaeMapper curriculum_vitaeDao;

    @Override
    public int updatevitae(Curriculum_vitae curriculum_vitae) {
        System.out.println("修改简历");
        return curriculum_vitaeDao.updatevitae(curriculum_vitae);
    }

    @Override
    public List<Curriculum_vitae> findAll(Integer page) {
        System.out.println("查看所以简历");
        return curriculum_vitaeDao.findAll(page);
    }

    @Override
    public int addvitae(Curriculum_vitae curriculum_vitae) {
        System.out.println("增加简历");
        return curriculum_vitaeDao.addvitae(curriculum_vitae);
    }

    @Override
    public int deletevitae(String name) {
        System.out.println("删除简历");
        return curriculum_vitaeDao.deletevitae(name);
    }
}
